package com.ruoyi.system.Fdongbei.service.impl;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.Fdongbei.domain.TbYcXccl;
import com.ruoyi.system.Fdongbei.mapper.TbYcXcclMapper;
import com.ruoyi.system.Fdongbei.service.ITbYcXcclService;
import lombok.Data;
import org.apache.ibatis.annotations.Delete;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author fufeng
 * @since 2025-02-04
 */
@Service
public class TbYcXcclServiceImpl  implements ITbYcXcclService {



    @Resource
    TbYcXcclMapper tbYcXcclMapper;




    @Override
    @DataSource(value = DataSourceType.LY002_D)
    public List<TbYcXccl> selectxccl(String sql) {
        return tbYcXcclMapper.selectxccl(sql);
    }



    @DataSource(value = DataSourceType.LY002_D)
    public int insertxccl(TbYcXccl tbYcXccl) {
        return tbYcXcclMapper.insertxccl(tbYcXccl);
    }
    @DataSource(value = DataSourceType.LY002_D)
    public TbYcXccl selectbyczbh(String czbh ) {
        return tbYcXcclMapper.selectbyczbh(czbh);
    }


    @DataSource(value = DataSourceType.LY002_D)
    public int updatexccl(TbYcXccl tbYcXccl ) {
        return tbYcXcclMapper.updatexccl(tbYcXccl);
    }
    @DataSource(value = DataSourceType.LY002_D)
    public int deletexccl(String czbh ) {
        return tbYcXcclMapper.deletexccl(czbh);
    }






}
